package com.decorate.decorate;

public abstract class Drink {
    //咖啡描述
    public String des ;
    //咖啡价格
    private float price  = 0.0f  ;

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    //计算费用的方法，由子类实现
    public abstract float cost() ;

}
